<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>鼠标移动</title>
    <style>
        .container{
            width: 800px;
            height: 600px;
            border: 3px solid black;
            margin: 0 auto;
        }
    </style>
    <script src="jquery.js"></script>
    <script>
        $(function (){
            $(".container").mousemove(function (e){
                console.log(e.clientX,e.clientY)
            })
        })
    </script>
</head>
<body>
    <div class="container"></div>
</body>
</html>